import { createApp } from 'vue'
import './style.css'
import 'element-plus/dist/index.css'
import '@/styles/index.scss';

import App from './App.vue'

import ElementPlus from 'element-plus'
import messagebox from "./plugins/messagebox";
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
app.use(ElementPlus, { size: 'default', zIndex: 3000 }).use(messagebox)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  //Menu 图标与组件冲突重新改名为 MenuIcon
  key == "Menu" ? app.component(key + "Icon", component) : app.component(key, component)
}
app.mount('#app')
